package com.threeti.mecool.core.infrastructure.persistence.plan;

import com.threeti.mecool.core.domain.model.plan.ProjectCriticalJob;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ProjectCriticalJobRepository extends JpaRepository<ProjectCriticalJob, Long> {
    List<ProjectCriticalJob> findByProject_Code(String projectCode);

    List<ProjectCriticalJob> findByProject_CodeAndJob_Id(String projectCode, Long jobId);

    List<ProjectCriticalJob> findByProject_Id(Long projectId);
}
